<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
	<title>{$teachinfo.title}_烘焙导师_烘焙论坛_烘焙社区</title>
	<meta name="keywords" content="烘焙论坛,烘焙社区,烘焙话题,烘焙问题,烘焙问题解答"/>
	<meta name="description" content="烘焙圈导师专栏最大的烘焙制作、经验分享交流社区，众多烘焙名家大师云集，烘焙问题为您随时解答，烘焙经验与您实时分享，无论您是新手还是达人，烘焙圈都将是您学习烘焙最好的选择。"/>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/teach.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>
<body>
<div class="b-page">
<include file="Public:header" />

<div class="b-zuopin">
<div class="b-banner yf-banner">
        <div class="b-banner__body l-center yf-banner__body">
            <div class="b-banner__main l-center">
                <foreach name="ad.center" item="cnt">
                    <a href="{$cnt.linkurl}" class="b-banner__item yf-banner__item" style="background-image: url(__FILESURL__{$cnt.image})"></a>
                </foreach>
                <div class="b-banner__nav">
                    <!-- <div class="b-banner__navItem act"></div> -->
                </div>
            </div>
        </div>
    </div>
<div class="b-zuopin__body">
    
    <div class="b-teachaddr">
        <a href="javascript:;" class="yf-teach-addr yf-teach-addrnow">当前位置:</a>
        <a href="__WEBURL__/index" class="yf-teach-addr">首页</a>
        <span>&gt;</span>
        <a class="yf-teach-addr yf-teach-naddr">{$teachinfo.title}</a>

        <div class="yf-search">
            <div class="yf-search__list">
                <a href="javascript:;" class="yf-search__showItem" id="yf-search_type" data="1">话题</a>
                <ul class="yf_search__itemList">
                    <li class="yf_search__item current" data-type="1">话题</li>
                    <li class="yf_search__item" data-type="2" style="display:none;">用户</li>
                </ul>
            </div>
            <div class="yf-search__input">
                <input type="text" value="" id="yf-keywords">
                <div class="yf-search__placeholder">搜索话题</div>
            </div>
            <button class="yf-search__btn" data-openuid="{$teachinfo.openuid}">搜索</button>
        </div>
    </div>
    <div class="yf-teach__left">
        <div class="yf-teach__member">
            <div class="yf-mem__avatar">
                <a href="__WEBURL__/u/{$teachinfo.openuid}">
                    <img src="{$teachinfo.uavatar}" width="80px" height="80px">
                </a>
            </div>
            <div class="yf-mem__info">
                <div class="yf-info__nickname">
                    {$teachinfo.title}
                    <if condition="$is_fans eq 0">
                    <a href="javascript:;" class="yf-mem__coll R_ajax_trip" data-info="userid,{$teachinfo.userid}" data-url="do/addfans/"><span class="yf-mem__add">+</span>关注</a>
                    <else/>
                    <a href="javascript:;" class="yf-mem__coll R_ajax_trip" data-info="userid,{$teachinfo.userid}" data-url="do/cancelfans/"><span class="yf-mem__add">+</span>已关注</a>
                    </if>
                </div>
                <div class="yf-info__fans">
                    成&nbsp;员：<a href="__WEBURL__/u/{$teachinfo.openuid}/fans">{$teachinfo.fansnum}</a>
                </div>
                
                <div class="yf-info__desc">
                    简&nbsp;介：{$teachinfo.usign}
                </div>
            </div>
        </div>
        <div class="yf-teach__nav">
            <a href="__WEBURL__/teach/tlist/u/{$teachinfo.openuid}?iflight=1" class="yf-teach__nbtn <if condition="$iflight eq 1">yf-teach__act</if>">全部</a>
            <a href="__WEBURL__/teach/tlist/u/{$teachinfo.openuid}?iflight=2" class="yf-teach__nbtn <if condition="$iflight eq 2">yf-teach__act</if>">精华帖</a>
            <if condition="$iflight eq 3">
            <a href="javascript:;" class="yf-teach__nbtn yf-teach__act" id="yfsearch">搜索</a>
            </if>
            <a href="__WEBURL__/teach/addteach" class="yf-teach__comment"><span></span>发表话题</a>
        </div>
        <if condition="$iflight eq 1">
        <div class="yf-teach__kind">
            <div class="yf-kind__nav">
                <a href="__WEBURL__/teach/tlist/u/{$teachinfo.openuid}" class="yf-kind__href <if condition="$catid eq 0">yf-kind__act</if>">全部</a>
            </div>
            <foreach name="cat_list" item="cat">
            <div class="yf-kind__nav">
                <a href="__WEBURL__/teach/tlist/u/{$teachinfo.openuid}?cate={$cat.catid}" class="yf-kind__href <if condition="$cat.catid eq $catid">yf-kind__act</if>">{$cat.catname}</a>
            </div>
            </foreach>
        </div>
        </if>
        <div class="yf-teach__list">
        <foreach name="list" item="lt">
            <div class="yf-teach__mlist">
                <div class="yf-mlist__img">
                    <a class="yf-mlist__pic" style="background-image: url(__WEBURL__{$lt.uavatar})" title="{$lt.nickname}"></a>
                </div>
                <div class="yf-mlist__info">
                    <a href="__WEBURL__/teach/{$lt.teachid}">
                        <p class="yf-info__title">{$lt.title}
                            <if condition="$lt.ds eq 1">
                            <span>导师</span>
                            </if>
                            <if condition="$lt.iflight eq 1">
                            <span>精</span>
                            </if>
                            <if condition="$lt.type eq 1">
                            <span>作品</span>
                            </if>
                        </p>
                    </a>   
                    <p class="yf-info__msg"><span><a href="__WEBURL__/u/{$lt.openuid}" class="yf-info__user">{$lt.nickname}</a></span><span class="yf-info__view"><img src="__WEBURL__/static/home/images/icon_quanzi_view.png" class="pic_mid">浏览{$lt.viewnum}次</span>|<span class="yf-info__chat"><i class="b-messageIcon pic_mid"></i>{$lt.msgnum}</span><span class="yf-info__date">{$lt.create_time|date="Y/m/d", ###}</span></p>             
                </div>
            </div>
        </foreach>
        <empty name="list">
            <div class="yf-teach__mlist" style="text-align: center;">
            <if condition="$iflight eq 3">
                <p>没有搜索到相应的话题</p>
            <else/>
                <p>暂时没有话题</p>
            </if>
            </div>
        </empty>
        </div>
        <div class="yf-teach__page">
            <div class="pager">
            {$Page}
            </div>
        </div>
    </div>
    <div class="yf-teach__right">
        <if condition="$ad.rightup neq ''">
        <a href="{$ad.rightup.linkurl}" class="yf-teach__rightad">
            <img src="__WEBURL__{$ad.rightup.image}" width="100%">
        </a>
        </if>
        <div class="yf-teach__hot">
            <div class="yf-teach__hottile">
                热门精华
            </div>
            <div class="yf-hot__list">
            <foreach name="lightlist" item="ll">
                <div class="yf-hot__mlist">
                    <span>{$key + 1}</span><a href="__WEBURL__/teach/{$ll.teachid}" class="yf-hot__href">{$ll.title}</a>
                </div>
            </foreach>
            <empty name="lightlist">
                <div class="yf-hot__mlist">
                    <p>暂时没有热门精华的话题</p>
                </div>
            </empty>
            </div>
        </div>
        
        <if condition="$ad.rightcenter neq ''">
        <a href="{$ad.rightcenter.linkurl}" class="yf-teach__centerad">
            <img src="__WEBURL__{$ad.rightcenter.image}" width="100%">
        </a>
        </if>
        
        <div class="yf-teach__light">
            <div class="yf-light__title">
                食谱推荐
            </div>
            <div class="yf-light__list">
            <foreach name="works" item="ws">
                <a href="__WEBURL__/works/{$ws.workid}" class="yf-light__mlist">
                    <div class="yf-light__img" style="background-image: url(__WEBURL__{$ws.image});">
                    </div> 
                    <div class="yf-light__info">
                        <p class="yf-light__ititle">{$ws.title}</p>
                        <p class="yf-light__content">{$ws.content}</p>     
                    </div>
                </a>
            </foreach>
            </div>
        </div>
        
        <if condition="$ad.rightdown neq ''">
        <a href="{$ad.rightcenter.linkurl}" class="yf-teach__centerad">
            <img src="__WEBURL__{$ad.rightdown.image}" width="100%" style="margin: 30px 0px;">
        </a>
        </if>
    </div>
</div>
</div>

<include file="Public:footer" />
</div>
<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>
<script src="__JS__/teach.js"></script>
<script src="__JS__/jquery.marquee.js"></script>
<script>
    $(document).ready(function(){

    });
</script>
</body>
</html>